<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=devic
    e-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        let sum = 0;
        function kk(i, d) {
            for (i; i < d; i++) {
                sum += i
            }
            // return sum
        }
        kk(5, 11)
        console.log(sum)
    </script>
</body>

</html>